import { BasicColumn } from '@/components/Table';
import { FormSchema } from '@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '版本名称',
    align: 'center',
    dataIndex: 'name',
  },
  {
    title: '版本号',
    align: 'center',
    dataIndex: 'version',
  },
  {
    title: '备注',
    align: 'center',
    dataIndex: 'remark',
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: '',
    component: 'Input',
    show: false,
  },
  {
    field: 'name',
    label: '版本名称',
    component: 'Input',
    required: true,
  },
  {
    field: 'version',
    label: '版本号',
    component: 'Input',
    required: true,
  },
  {
    field: 'remark',
    label: '备注',
    component: 'InputTextArea',
    required: true,
  },
];
